package gui;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Random;

import javax.imageio.ImageIO;
import javax.swing.JPanel;


public class Hex {
	
	private String texturePath;
	private BufferedImage texture;
	private int weight; //how much it costs to move to 
	private boolean vision; //change to set of players when more info is given
	//array of effects
	
	public Hex(int weight) {
		try {
			texture = ImageIO.read(new File(texturePath));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.weight = weight;
		vision = false;
	}
	
//	public static Hex rand() {
//		Random r = new Random();
//		int weight = r.nextInt(2) + 1;
//		return new Hex(weight);
//	}
	
	public int getWeight() {
		return weight;
	}//end of getter getWeight
	
	public BufferedImage getTexture() {
		return texture;
	}

}
